package org.freespace.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.freespace.model.JmxSample;
import org.freespace.mapper.JmxSampleMapper;
import org.freespace.model.JmxThreadgroup;
import org.freespace.service.IJmxSampleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 压测机器表 服务实现类
 * </p>
 *
 * @author liuqi
 * @since 2023-05-12
 */
@Service
public class JmxSampleServiceImpl extends ServiceImpl<JmxSampleMapper, JmxSample> implements IJmxSampleService {
    @Override
    public void deleteJmxSampleByJmxId(Integer jmxId){
        QueryWrapper<JmxSample> wrapper = new QueryWrapper<>();
        wrapper.eq("jmx_id", jmxId);
        remove(wrapper);
    }
}
